//
// Created by 小演员的MacBook on 2024/6/26.
//

#include <iostream>
using namespace std;
using std :: string;

int main() {
    string str1 = "123";
    string str2 = "123";
//    string str3 = "123" + "456";
    cout << (str1 == str2) << endl;//内容相同
    cout << (&str1 == &str2) << endl;//地址不同
    cout << &str1 << endl;
    cout << &str2 << endl;
    cout << str1.size() << endl;
    cout << str1[0] << endl;

    return 0;
}